placesview: don't show network addresses
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Mon, 27 Jul 2015 19:51:23 +0000 (16:51 -0300)
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Tue, 28 Jul 2015 10:03:09 +0000 (07:03 -0300)
It is distracting, not relevant and too space
consuming.

Remove the network addresses label.

gtk/gtkplacesview.c

index cf518795b4af077e72b3d29eb80f8146b839bfe3..d05f57d2356b733d1d33eb0d36d1f8647bb840a4 100644 (file)
@@ -758,7 +758,7 @@ add_volume (GtkPlacesView *view,
   root = mount ? g_mount_get_root (mount) : NULL;
   icon = g_volume_get_icon (volume);
   name = g_volume_get_name (volume);
-  path = root ? g_file_get_parse_name (root) : NULL;
+  path = !is_network ? g_volume_get_identifier (volume, G_VOLUME_IDENTIFIER_KIND_UNIX_DEVICE) : NULL;
 
   if (!mount ||
       (mount && !g_mount_is_shadowed (mount)))